#pragma  once

#include "stdafx.h"
#include "common.h"

class ParametersModel;
class Common;
class Delegate;

class TimeSettings : public QObject
{
	Q_OBJECT

public:
	TimeSettings(QWeakPointer<Common> _common);
	~TimeSettings();
	void init_model();
	QSharedPointer<ParametersModel> model;
	QSharedPointer<Delegate> delegate;
private:
	QWeakPointer<Common> common;
private slots:
	void update_parameters();
	void getNewParameterValue(const QString &_name, const QVariant &_value);
signals:
	//void setModelData(const int &parent_row, const int &row, const QVariant &value);
	void setNewParameterValue(const QString &_name, const QVariant &_value);
};
